<?php
/**
 * Created by : PhpStorm
 * User: DuFei
 * Date: 2020/9/7
 * Time: 14:00
 */

namespace app\models;


class CreateOrderParams
{
    private $appId=5;
    private $typeId=20;
    private $currencyType=1;
    private $amount;
    private $orderid;
    private $name;
    private $starttime;
    private $endtime;
    /**
     * @var string 非必须
     */
    private $returnurl;
    private $notifyurl;
    private $sign;

    private $getPayUrl;

    /**
     * @return mixed
     */
    public function getAppId()
    {
        return $this->appId;
    }

    /**
     * @param mixed $appId
     */
    public function setAppId($appId)
    {
        $this->appId = $appId;
    }

    /**
     * @return mixed
     */
    public function getTypeId()
    {
        return $this->typeId;
    }

    /**
     * @param mixed $typeId
     */
    public function setTypeId($typeId)
    {
        $this->typeId = $typeId;
    }

    /**
     * @return mixed
     */
    public function getCurrencyType()
    {
        return $this->currencyType;
    }

    /**
     * @param mixed $currencyType
     */
    public function setCurrencyType($currencyType)
    {
        $this->currencyType = $currencyType;
    }

    /**
     * @return mixed
     */
    public function getAmount()
    {
        return $this->amount;
    }

    /**
     * @param mixed $amount
     */
    public function setAmount($amount)
    {
        $this->amount = $amount;
    }

    /**
     * @return mixed
     */
    public function getOrderid()
    {
        return $this->orderid;
    }

    /**
     * @param mixed $orderid
     */
    public function setOrderid($orderid)
    {
        $this->orderid = $orderid;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return mixed
     */
    public function getStarttime()
    {
        return $this->starttime;
    }

    /**
     * @param mixed $starttime
     */
    public function setStarttime($starttime)
    {
        $this->starttime = $starttime;
    }

    /**
     * @return mixed
     */
    public function getEndtime()
    {
        return $this->endtime;
    }

    /**
     * @param mixed $endtime
     */
    public function setEndtime($endtime)
    {
        $this->endtime = $endtime;
    }

    /**
     * @return string
     */
    public function getReturnurl()
    {
        return $this->returnurl;
    }

    /**
     * @param string $returnurl
     */
    public function setReturnurl($returnurl)
    {
        $this->returnurl = $returnurl;
    }

    /**
     * @return mixed
     */
    public function getNotifyurl()
    {
        return $this->notifyurl;
    }

    /**
     * @param mixed $notifyurl
     */
    public function setNotifyurl($notifyurl)
    {
        $this->notifyurl = $notifyurl;
    }

    /**
     * @return mixed
     */
    public function getSign()
    {
        return $this->sign;
    }

    /**
     * @param mixed $sign
     */
    public function setSign($sign)
    {
        $this->sign = $sign;
    }


    public function toArray() {
        return [
                "appid"=>$this->appId,
                "typeid"=>$this->typeId,
                "currencyType"=>$this->currencyType,
                "amount"=>$this->amount,
                "orderid"=>$this->orderid,
                "name"=>$this->name,
                "starttime"=>$this->starttime,
                "endtime"=>$this->endtime,
                "returnurl"=>$this->returnurl,
                "notifyurl"=>$this->notifyurl,
                "sign"=>$this->sign
        ];

    }

    /**
     * @return mixed
     */
    public function getGetPayUrl()
    {
        return $this->getPayUrl;
    }

    /**
     * @param mixed $getPayUrl
     */
    public function setGetPayUrl($getPayUrl)
    {
        $this->getPayUrl = $getPayUrl;
    }






}
